package pers.wensheng.patterns.behavioral_pattern.state_pattern.before;

/**
 * 没有使用状态模式
 */
public class Client {
    public static void main(String[] args) {
        ILift lift = new Lift();
        lift.setState(ILift.OPENING_STATE);

        //开门
        lift.open();
        lift.close();
        lift.run();
        lift.close();
        lift.stop();

    }
}
